<template>
  <div class="cont">
    <div class="dia">
      <div class="header">
        <div class="title">实时监控</div>
        <div class="close" @click="emit('close')"></div>
      </div>
      <div class="content">
        <onem :vid="props.vid" />
      </div>
    </div>
  </div>
</template>

<script setup>
const props = defineProps({
  vid: String
});
const emit = defineEmits(["close"]);
const them = ref()
const state = reactive({
  show: true
})

onMounted(() => {

})
</script>

<style lang="scss" scoped>
.cont {
  width: 1200px;
}

.dia {
  margin-top: 5px;
  width: 1200px;
  height: 712px;
  display: flex;
  flex-direction: column;
  background-image: url('/images/bgd.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;

  .header {
    width: 1200px;
    height: 32px;
    display: flex;
    align-items: center;

    .title {
      margin-left: 30px;
      font-weight: 600;
      font-size: 14px;
      color: #FFFFFF;
    }

    .close {
      margin: 8px 2px 0 auto;
      background-image: url('/images/close.png');
      background-size: 100% 100%;
      background-repeat: no-repeat;
      width: 30px;
      height: 30px;
      cursor: pointer;
      opacity: 0.5;
    }
  }

  .content {
    width: 1200px;
    height: 680px;
    padding: 1px;
  }
}
</style>